package v1

import (
	"github.com/gin-gonic/gin"
	v12 "jmicro/app/jshop/api/internal/service/v1"
)

//var ProviderSet = wire.NewSet(NewUserController)

type userServer struct {
	userSrv v12.UserSrv
	smsSrv  v12.SmsSrv
	//srv service.ServiceFactory
}

func NewUserController(userSrv v12.UserSrv, smsSrv v12.SmsSrv) UsersStore {
	return &userServer{userSrv: userSrv, smsSrv: smsSrv}
}

var _ UsersStore = &userServer{}

type UsersStore interface {
	Regisger(ctx *gin.Context)
	GetUserDetail(ctx *gin.Context)
	UpdateUser(ctx *gin.Context)
	Login(ctx *gin.Context)
	List(ctx *gin.Context)

	GetCaptcha(ctx *gin.Context)
	SendSms(c *gin.Context)
}
